<extend name="Layout/ins_page" />
<block name="content">
	{:W('PageHeader/simple',array('name'=>'供应商：'.$vo['name']))}
	<div class="sub-frame gray">
		<div class="oprator-panel">
			<a onclick="go_return_url();" class="btn">返回</a>
			<div class="split"></div>
			<a onclick="edit();"  class="btn">修改</a>
		</div>
	</div>
	<div class="frame">
		<div class="bit-2">
			<div class="layui-form-item">
				<label class="layui-form-label" for="name">名称*：</label>
				<div class="layui-input-block">
					<input disabled="disabled" value="{$vo.name}" class="layui-input" type="text" id="name" name="name" check="required" info="请输入名称">
				</div>
			</div>
		</div>
		<div class="bit-2">
			<div class="layui-form-item">
				<label class="layui-form-label" for="short">简称*：</label>
				<div class="layui-input-block">
					<input disabled="disabled" value="{$vo.short}" class="layui-input" type="text" id="short" name="short" check="required" info="请输入简称">
				</div>
			</div>
		</div>
		<div class="bit-2">
			<div class="layui-form-item">
				<label class="layui-form-label" for="account">帐号*：</label>
				<div class="layui-input-block">
					<input disabled="disabled" value="{$vo.account}" class="layui-input" type="text" id="account" name="account" check="required" info="请输入帐号">
				</div>
			</div>
		</div>
		<div class="bit-2">
			<div class="layui-form-item">
				<label class="layui-form-label" for="tax_no">税号*：</label>
				<div class="layui-input-block">
					<input disabled="disabled" value="{$vo.tax_no}"  class="layui-input" type="text" id="tax_no" name="tax_no" >
				</div>
			</div>
		</div>
		<div class="bit-2">
			<div class="layui-form-item">
				<label class="layui-form-label" for="payment">付款方式*：</label>
				<div class="layui-input-block">
					<input disabled="disabled" value="{$vo.payment}"  class="layui-input" type="text" id="payment" name="payment" >
				</div>
			</div>
		</div>
		<div class="bit-2">
			<div class="layui-form-item">
				<label class="layui-form-label" for="address">地址*：</label>
				<div class="layui-input-block">
					<input disabled="disabled" value="{$vo.address}"  class="layui-input" type="text" id="address" name="address" >
				</div>
			</div>
		</div>
		<div class="bit-2">
			<div class="layui-form-item">
				<label class="layui-form-label" for="contact">联系人*：</label>
				<div class="layui-input-block">
					<input disabled="disabled" value="{$vo.contact}"  class="layui-input" type="text" id="contact" name="contact" check="required" info="请输入联系人">
				</div>
			</div>
		</div>
		<div class="bit-2">
			<div class="layui-form-item">
				<label class="layui-form-label" for="email">邮箱*：</label>
				<div class="layui-input-block">
					<input disabled="disabled" value="{$vo.email}"  class="layui-input" type="text" id="email" name="email" check="required" info="请输入邮箱">
				</div>
			</div>
		</div>
		<div class="bit-2">
			<div class="layui-form-item">
				<label class="layui-form-label" for="office_tel">办公电话*：</label>
				<div class="layui-input-block">
					<input disabled="disabled" value="{$vo.office_tel}"  class="layui-input" type="text" id="office_tel" name="office_tel" check="required" info="请输入办公电话">
				</div>
			</div>
		</div>
		<div class="bit-2">
			<div class="layui-form-item">
				<label class="layui-form-label" for="mobile_tel">手机*：</label>
				<div class="layui-input-block">
					<input disabled="disabled" value="{$vo.mobile_tel}"  class="layui-input" type="text" id="mobile_tel" name="mobile_tel" check="required" info="请输入手机">
				</div>
			</div>
		</div>
		<div class="bit-2">
			<div class="layui-form-item">
				<label class="layui-form-label" for="fax">传真：</label>
				<div class="layui-input-block">
					<input disabled="disabled" value="{$vo.fax}"  class="layui-input" type="text" id="fax" name="fax">
				</div>
			</div>

		</div>
		<div class="bit-2">
			<div class="layui-form-item">
				<label class="layui-form-label" for="im">即时聊天：</label>
				<div class="layui-input-block">
					<input disabled="disabled" value="{$vo.im}"  class="layui-input" type="text" id="im" name="im" >
				</div>
			</div>
		</div>
		<div class="bit-1">
			<div class="layui-form-item">
				<label class="layui-form-label" for="remark" >其他：</label>
				<div class="layui-input-block" >
					<textarea disabled="disabled" class="layui-textarea" name="remark" rows="5">{$vo.remark}</textarea>
				</div>
			</div>
		</div>
		<div class="bit-1">
			<div class="layui-form-item">
				<div class="layui-input-block" >
					<input class="btn" type="button" value="保存" id="btn_save">
					<input  class="btn btn-cancel" type="button" value="取消" onclick="go_return_url();">
				</div>
			</div>
		</div>
	</div>
	</div>
</block>
<block name="js">
	<script type="text/javascript">
		layui.use('global', function() {
			var $ = layui.jquery;
			$("#btn_save").on('click', function() {
				send_form("form_data", "{:U('save')}", "{:U('index')}");
			});
		});

		function edit() {
			window.location = "{:U('edit','id='.$vo['id'])}";
		}
	</script>
</block>